package com.eternal.login.services;

import com.eternal.util.user.entity.UserInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public interface LoginService {

    /**
     * 用户登录
     * @param userInfoEntity
     * @return 返回token
     */
    String login(UserInfo userInfoEntity);

    /**
     * 验证用户密码
     * @param inputPass:输入的密码
     * @param outPass:数据库的密码
     * @return
     */
    boolean verifyPass(String inputPass,String outPass);


}
